package com.yanqu.road.entity.activity.flowerstudy.data.cross;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.concurrent.atomic.AtomicInteger;

@FieldTypeAnnotation(desc = "花城书房活动考试场次数据",tableName = "t_c_flower_study_activity_exam_session")
public class CrossFlowerStudyExamSessionData extends DataObject {
    @FieldTypeAnnotation(desc = "活动id",select = true,update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "场次id",select = true,update = true)
    private int sessionId;
    @FieldTypeAnnotation(desc = "当前场次房间类型")
    private int roomType;
    @FieldTypeAnnotation(desc = "场次当前状态 0未开始 1进行中 2已结束")
    private int state;
    @FieldTypeAnnotation(desc = "当前场次自增房间号")
    private int roomId;

    private AtomicInteger atomicRoomId = new AtomicInteger(0);

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public int getSessionId() {
        return sessionId;
    }
    public void setSessionId(int sessionId) {
        if (this.sessionId != sessionId) {
            this.sessionId = sessionId;
            setOp(DataStatus.Update);
        }
    }

    public int getRoomType() {
        return roomType;
    }
    public void setRoomType(int roomType) {
        if (this.roomType != roomType) {
            this.roomType = roomType;
            setOp(DataStatus.Update);
        }
    }

    public int getState() {
        return state;
    }
    public void setState(int state) {
        if (this.state != state) {
            this.state = state;
            setOp(DataStatus.Update);
        }
    }

    public int getRoomId() {
        return roomId;
    }
    public void setRoomId(int roomId) {
        if (this.roomId != roomId) {
            this.roomId = roomId;
            setOp(DataStatus.Update);
        }
    }

    public AtomicInteger getAtomicRoomId() {
        return atomicRoomId;
    }

    public void setAtomicRoomId(AtomicInteger atomicRoomId) {
        this.atomicRoomId = atomicRoomId;
    }
}
